﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HarveyNash.RefactoringAndCodeSmell.Refactoring.SubstituteAlgorithm
{
    class Before
    {
        public string ConcatArrayItems(string[] inputArray)
        {
            string returnedValue = "";
            for (int i = 0; i < inputArray.Length; i++)
            {
                returnedValue += inputArray[i];
                if (i < inputArray.Length - 1)
                    returnedValue += ",";
            }
            return returnedValue;
        }
    }
}
